- @html_title ||= '项目列表'
- html_buttons do
  = link_to '新增', new_project_path, class: 'btn btn-primary pull-right'

/! 数据列表
table.table.table-bordered.table-header-bg
  thead
    tr
      th Name
      th visit_url
      th Notes
      th 操作
  tbody
    - @projects.each do |project|
      tr
        td = project.name
        td
          = link_to project.visit_url, project.visit_url
        td = project.notes
        td
          = link_to '查看',  project, class: 'btn btn-info btn-xs'
          = link_to '编辑', edit_project_path(project), class: 'btn btn-primary btn-xs push-5-l'
          = link_to '删除', project, data: { confirm: '确定删除吗?' }, method: :delete, class: 'btn btn-danger  btn-xs push-5-l'